package com.yuncheng.spcyApi.mapper;

import com.yuncheng.spcyApi.entity.SpcyDaType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuncheng.spcyApi.vo.da.DaTypeTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 审评查验-档案-档案分类
 * @Author: yuncheng
 * @Date: 2023-08-09
 * @Version: V1.0
 */
public interface SpcyDaTypeMapper extends BaseMapper<SpcyDaType> {
    // 查询所以父级
    List<DaTypeTreeVo> selectAllType(String type);

    // 查询父级下的所以子级
    List<DaTypeTreeVo> selectTypeByParentId(@Param("parentId") String parentId);
}
